package com.jiazixuan.stock.pojo.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @ApiModelProperty(value = "用户ID", position = 1)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id; // 用户ID
    @ApiModelProperty(value = "用户名称", position = 2)
    private String username; // 用户名称
    @ApiModelProperty(value = "手机号", position = 3)
    private String phone; // 手机号
    @ApiModelProperty(value = "昵称", position = 4)
    private String nickName; // 昵称
    @ApiModelProperty(value = "真实名称", position = 5)
    private String realName; // 真实名称
    @ApiModelProperty(value = "性别", position = 6)
    private int sex; // 性别
    @ApiModelProperty(value = "状态", position = 7)
    private int status; // 状态
    @ApiModelProperty(value = "邮件", position = 8)
    private String email; // 邮件
}
